package com.yqg.protection.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * record_equipment 实体类
 * @author 小宇
 * @since 2024-09-13
 */
@Getter
@Setter
  @TableName("record_equipment")
@ApiModel(value = "RecordEquipment对象", description = "设备数据")
public class RecordEquipment implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("自增id")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("设备编号")
      private String equipmentNo;

      @ApiModelProperty("系统类型")
      private String systemType;

      @ApiModelProperty("系统地址")
      private String systemAddress;

      @ApiModelProperty("部件类型")
      private String partsType;

      @ApiModelProperty("部件地址")
      private String partsAddress;

      @ApiModelProperty("模拟量类型")
      private String analogType;

      @ApiModelProperty("模拟数量")
      private Integer analogNum;

      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
      @ApiModelProperty("上传时间")
      private LocalDateTime dataTime;


}
